/*
* IBM Confidential
* (C) Copyright IBM Corp. 2011 All Rights Reserved.
*/
package com.ibm.crm.tma.adapter.mq.testplan.dto;
/**
 * <p>
 * Represents a peak entity that holds information of a specific peak
 * (peak duration in minutes, the number of operations to execute during
 * the peak and the offset (in minutes) after which the peak will be run
 * after the start of the test plan).
 * This class provides a setter and a getter for each defined field and
 * does not perform any argument validation in the setters.
 * </p>
 * <p>
 * Thread Safety :
 * This class is mutable and thus not thread safe. It is excpected to be
 * used by the caller in a thread safe manner.
 * </p>
 * @author Schpotsky, TCSDEVELOPER
 * @version 1.0
*/
public class Peak {
    /**
     * <p>
     * The number of minutes after which the peak will start starting
     * from the test plan initiation time.
     * Can be any value.
     * Has a setter and a getter.
     * It is mutable.
     * </p>
    */
    private int offset;
    /**
     * <p>
     * The duration of the peak expressed in minutes.
     * Can be any value.
     * Has a setter and a getter.
     * It is mutable.
     * </p>
    */
    private int duration;
    /**
     * <p>
     * The total number of operations to be executed during the peak.
     * Can be any value.
     * Has a setter and a getter.
     * It is mutable.
     * </p>
    */
    private int size;
    /**
     * <p>
     * Creates an instance of this class.
     * </p>
    */
    public Peak() {
    }
    /**
     * <p>
     * Gets the offset instance field.
     * </p>
     * @return The offset.
    */
    public final int getOffset() {
        return offset;
    }
    /**
     * <p>
     * Sets the offset instance field.
     * </p>
     * @param offset
     *            The number of minutes after which the peak will
     *            start starting from the test plan initiation time.
    */
    public final void setOffset(final int offset) {
        this.offset = offset;
    }
    /**
     * <p>
     * Gets the duration instance field.
     * </p>
     * @return The duration.
    */
    public final int getDuration() {
        return duration;
    }
    /**
     * <p>
     * Sets the duration instance field.
     * </p>
     * @param duration
     *            The peak duration expressed in minutes.
    */
    public final void setDuration(final int duration) {
        this.duration = duration;
    }
    /**
     * <p>
     * Gets the size instance field.
     * </p>
     * @return The size.
    */
    public final int getSize() {
        return size;
    }
    /**
     * <p>
     * Sets the size instance field.
     * </p>
     * @param size
     *            The number of operations to be executed during the peak.
    */
    public final void setSize(final int size) {
        this.size = size;
    }
}

